#pragma once

#include "INet.h"

struct CPeer
{
	CPeer(SOCKET s, WSAEVENT e):hSocket(s), hEvent(e)
	{
	}
	SOCKET hSocket;
	WSAEVENT hEvent;
};

class CEventSelect:public INet
{
public:
	void Release();
	bool Initialize();
	void Do();
	void Stop();

private:
	bool m_bStop;
	SOCKET m_listenSocket;
	typedef std::vector<CPeer> PeerVec;
	PeerVec m_peers;
};
